const mongoose = require('mongoose')
const {formatDate} = require('../../utils')
const FileSchema = new mongoose.Schema({
    userId: {type: String, required: true},
    username: {type: String, required: true},
    ctime: { type: String, required: true, default: formatDate() },
    path: { type: String, required: true, trim: true },
}) 

const File = mongoose.model('Files', FileSchema)

module.exports = File